<script setup lang="ts">
import { ref, getCurrentInstance } from "vue";
import menuList from "@/router/routes/routes";

// vue 实例
const curIns = getCurrentInstance()?.proxy;

// 菜单是否收缩
const isCollapse = ref(false);
</script>

<template>
  <xt-scrollbar class="h-full" height="100%" :view-style="{ height: '100%' }">
    <xt-menu
      class="h-full w-[200px] select-none"
      router
      unique-opened
      :default-active="curIns?.$route.path"
      :collapse="isCollapse"
      :menuList="menuList"
    />
  </xt-scrollbar>
</template>
